
#ifndef   __HARDWARE_H__
#define   __HARDWARE_H__

#include "LPC23xx.h" 
#include "io.h" 

/* INPUTS */
#define   PIN_TRK					PORT_0_PIN.PIN_24				  /* On/Off */
#define   PIN_TRK_DIR			PORT_0_DIR.PIN_24				  /* On/Off */

#define   PIN_OIL_SPEED			PORT_1_PIN.PIN_31				  /* count pulses */
#define   PIN_OIL_SPEED_DIR	PORT_1_DIR.PIN_31				  /* count pulses */

/* OUTPUTS */

#define   PIN_DIR_OUTPUT		1
#define   PIN_DIR_INPUT			0

#define   LED1				PORT_1_PIN.PIN_28
#define   LED1_DIR		PORT_1_DIR.PIN_28

#define   LED2				PORT_4_PIN.PIN_28
#define   LED2_DIR		PORT_4_DIR.PIN_28

#define   LED3				PORT_4_PIN.PIN_29
#define   LED3_DIR		PORT_4_DIR.PIN_29

#define   LED4				PORT_1_PIN.PIN_8
#define   LED4_DIR		PORT_1_DIR.PIN_8

/* Modem */
#define   PIN_MODEM_POWER					PORT_0_PIN.PIN_17
#define   PIN_MODEM_POWER_DIR				PORT_0_DIR.PIN_17	

#define   PIN_MODEM_WAKEUP					PORT_1_PIN.PIN_29
#define   PIN_MODEM_WAKEUP_DIR			PORT_1_DIR.PIN_29

/* Flow control - active level - LOW */
#define   PIN_MODEM_CTS				PORT_0_PIN.PIN_0
#define   PIN_MODEM_CTS_DIR		PORT_0_DIR.PIN_0
#define   PIN_MODEM_RTS				PORT_0_PIN.PIN_1
#define   PIN_MODEM_RTS_DIR		PORT_0_DIR.PIN_1



#endif

